package pers.mihao.quickstream.publish.constants;

import lombok.Getter;

/**
 * @author mihao
 * @since 2024/11/25
 */
public enum PublishTimerType {

    NOW("立即发布"),
    TIMER("定时发布");

    @Getter
    String desc;

    PublishTimerType(String desc) {
        this.desc = desc;
    }

    public static PublishTimerType of(String type) {
        PublishTimerType[] values = PublishTimerType.values();
        for (PublishTimerType value : values) {
            if (value.name().equals(type)) {
                return value;
            }
        }
        return null;
    }
}
